package com.anycl.customer.service;

import com.anycl.customer.entity.Customer;
import com.anycl.customer.exception.CustomerException;
import com.anycl.customer.vo.CustomerVo;

import javax.servlet.http.HttpSession;
import java.util.List;

public interface CustomerService {

    CustomerVo addCustomer(CustomerVo customerVo, HttpSession session) throws CustomerException;

    CustomerVo deleteCustomerById(Long id, HttpSession session) throws CustomerException;

    CustomerVo updateCustomer(CustomerVo customerVo, HttpSession session) throws CustomerException;

    CustomerVo selectCustomerById(Long id, HttpSession session) throws CustomerException;

    List<CustomerVo> selectAllCustomer(HttpSession session) throws CustomerException;
}

